package com.rz.htk;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;

@SpringBootApplication
@MapperScan(basePackages = {"com.rz.htk.*.mapper"})
@ComponentScan(basePackages = {"com.rz.core","com.rz.htk"})
@EnableAsync
@NacosPropertySource(dataId="htk-server",autoRefreshed = true)
public class HtkApplication {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    public static void main(String[] args) {
        SpringApplication.run(HtkApplication.class, args);
    }

}
